﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string userName = Request.Form["UserName"];
            string passWord = Request.Form["PassWord"];
            string Method = Request.HttpMethod;
            if (Method == "get")
            {
                userName = Request.QueryString["UserName"];
                passWord = Request.QueryString["Password"];
            } else if (Method=="post") 
            {
                userName = Request.Params["UserName"];
                passWord = Request.Params["Password"];
            }
            Response.Write($"<h1> 欢迎你，{userName}，你的密码是：{passWord} </ h1> ");
        }

        
    }
}